/**
 * @file signal_out.h
 * @brief Macros of the functions in the signal and the stderr output.
 * @date Nov-2011
 * @author Leonardo Lino 2101101
 * @author Joaquim Ferreira 2101104
 * @version 1.0
 */

#ifndef SIGNAL_OUT_H
#define SIGNAL_OUT_H

extern int G_continue;
extern int G_proc_lines;
extern int G_proc_files;

/**
 * @brief Function that treats the signal SIGINT.
 * @fn void signal_routine(int signal)
 * @param signal the signal: SIGINT.
 * @return Nothing to return.
 */
void signal_routine (int signal);

/**
 * @brief Function that send to the stderr some info.
 * @fn void out_stderr (char *opt)
 * @param opt The pointer to the string of the selected option.
 * @param t_start This variable countains the starting time of the program.
 * @return Nothing to return.
 */
void out_stderr (char *opt, time_t t_start);

/**
 * @brief Function that send to the stderr the date and the time.
 * @fn void date_time (void)
 * @param (void) Nothing to input.
 * @return Nothing to return.
 */
void date_time (void);

#endif /* SIGNAL_OUT_H */
